<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
My share page
</body>
</html>
<script type="text/javascript" src="js/jquery3.2.1.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
  $(function () {
    var url = location.href.split('#')[0];
    $.ajax({
      url: "http://www.renwup.com/wechat/index.php?a=getJssdk&c=api_open", data: {url: url}, success: function (res) {
        var config = JSON.parse(res);
        wx.config(config);
      }
    });

    var shareData = {
      title: "matt", // 分享标题
      desc: "matt",
      link: "wwww.baidu.com",
      imgUrl: "http://www.renwup.com/wap/img/xuzhu.png"
    };
    console.log(shareData);
    wx.onMenuShareAppMessage(shareData);

  });
</script>



